﻿<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Page language="c#" Codebehind="ManageFlow.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlow.ManageFlow" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>ManageFlow</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
<script language="javascript">
	function delete_confirm(e) {
		if (event.srcElement.outerText == "删除")
		event.returnValue =confirm("您确认要删除?");
	}
	document.onclick=delete_confirm;		
</script>
</head>
<body>
    <form id="ManageFlow" method="post" runat="server">
    <div class="m">
    <div class="path"><span class="right"><asp:Button id="cmdReturn" accessKey="r" runat="server" Width="60px" CssClass="buttoncss" Text="返回"></asp:Button></span><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 流程名：<asp:Label id="labTitle" runat="server" Width="632px"></asp:Label></div>
    <div class="con">
<asp:datagrid id="dgStepList" runat="server" BorderColor="#337FB2" BorderStyle="None" BorderWidth="1px"
								BackColor="White" CellPadding="3" AutoGenerateColumns="False" AllowPaging="True" PageSize="15" DataKeyField="Step_ID"
								OnPageIndexChanged="DataGrid_PageChanged" Width="100%" HorizontalAlign="Center" AllowSorting="True" OnDeleteCommand="MyDataGrid_Delete"
								OnEditCommand="MyDataGrid_Move">
								<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
								<AlternatingItemStyle  HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
								<ItemStyle  HorizontalAlign="Center" ForeColor="#003399" BackColor="White"></ItemStyle>
								<HeaderStyle  Font-Bold="True" HorizontalAlign="Center" ForeColor="White"
									BackColor="#337FB2"></HeaderStyle>
								<FooterStyle HorizontalAlign="Center" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
								<Columns>
									<asp:BoundColumn DataField="Step_ID" HeaderText="步骤">
										<HeaderStyle Width="8%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn HeaderText="名称">
										<HeaderStyle HorizontalAlign="Left" Width="48%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Left"></ItemStyle>
										<ItemTemplate>
											<a href ='EditTache.aspx?FlowID=<%=FlowID%>&StepID=<%#DataBinder.Eval(Container.DataItem,"Step_ID")%>'>
												<%# DataBinder.Eval(Container, "DataItem.Step_Name") %>
											</a>
										</ItemTemplate>
										<EditItemTemplate>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="流转规则">
										<HeaderStyle Width="10%"></HeaderStyle>
										<ItemTemplate>
											<asp:Label runat="server">
												<%#GetTranslateFlowRule(DataBinder.Eval(Container.DataItem,"Flow_Rule").ToString())%>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox runat="server"></asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="人员">
										<HeaderStyle Width="8%"></HeaderStyle>
										<ItemTemplate>
											<a href ='BindStaff.aspx?FlowID=<%=FlowID%>&StepID=<%#DataBinder.Eval(Container.DataItem,"Step_ID")%>'>
												绑定</a>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:ButtonColumn Text="删除" HeaderText="操作" CommandName="Delete">
										<HeaderStyle Width="8%"></HeaderStyle>
									</asp:ButtonColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="" HeaderText="位置" CancelText="" EditText="上移">
										<HeaderStyle Width="8%"></HeaderStyle>
									</asp:EditCommandColumn>
									<asp:TemplateColumn HeaderText="分支(个)">
										<HeaderStyle Width="10%"></HeaderStyle>
										<ItemTemplate>
											<a href ='EditJump.aspx?FlowID=<%=FlowID%>&StepID=<%#DataBinder.Eval(Container.DataItem,"Step_ID")%>'>
												分支</a>(<%#DataBinder.Eval(Container.DataItem,"Jump_Count")%>)
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle  HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
							</asp:datagrid>
    </div>
  </div>
</form>
</body>
</html>